package com.xixisleep.yecodesandbox.docker;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command.PingCmd;
import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;

public class dockerDemo {

    public static void main(String[] args) {
        DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
                .withDockerHost("tcp://0.0.0.0:2375")
                .withDockerTlsVerify(false)
                .build();

        DockerClient dockerClient = DockerClientBuilder.getInstance(config).build();
    }
}
